package com.powernode.feign.sentinel;

/**
 * @version 1.0
 * @Date 2024/8/20 12:03
 * @Author 付~~~
 */

import com.powernode.domain.MemberAddr;
import com.powernode.ex.handler.BusinessException;
import com.powernode.feign.OrderMemberFeign;
import com.powernode.model.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 订单业务模块调用会员业务模块的feign接口熔断处理
 */
@Component
@Slf4j
public class OrderMemberFeignSentinel implements OrderMemberFeign {
    @Override
    public Result<MemberAddr> getMemberAddrById(Long addrId) {
        log.error("远程调用接口失败：根据收获地址标识查询收获地址信息");
        return null;
    }

    @Override
    public Result<MemberAddr> getMemberDefaultAddrByOpenId(String openId) {
        log.error("远程调用接口失败：根据会员openId查询会员默认收货地址");
        return null;
    }

    /**
     * 根据会员openID查询会员昵称(远程接口)
     * @param openId
     * @return
     */
    @Override
    public Result<String> getNickNameByOpenId(String openId) {
        log.error("远程调用接口失败：根据会员openId查询会员昵称");
        return null;
    }
}
